#!/bin/bash

# 创建图标目录
mkdir -p assets/icons

# 图标URLs - 使用免费可商用的图标库
ICONS=(
  "https://cdn-icons-png.flaticon.com/512/1946/1946436.png home.png"
  "https://cdn-icons-png.flaticon.com/512/711/711245.png video.png"
  "https://cdn-icons-png.flaticon.com/512/3047/3047928.png pet.png"
  "https://cdn-icons-png.flaticon.com/512/1041/1041916.png community.png"
  "https://cdn-icons-png.flaticon.com/512/1077/1077063.png user.png"
  "https://cdn-icons-png.flaticon.com/512/1077/1077035.png like.png"
  "https://cdn-icons-png.flaticon.com/512/1380/1380338.png comment.png"
  "https://cdn-icons-png.flaticon.com/512/929/929610.png share.png"
  "https://cdn-icons-png.flaticon.com/512/1237/1237946.png add.png"
  "https://cdn-icons-png.flaticon.com/512/149/149852.png search.png"
)

# 下载图标
for icon in "${ICONS[@]}"; do
  read -r url filename <<< "$icon"
  echo "下载图标: $filename 从 $url"
  curl -L -o "assets/icons/$filename" "$url"
done

echo "所有图标下载完成！" 